home *** CD-ROM | disk | FTP | other *** search
/ Aminet 41 / Aminet 41 (2001)(Schatztruhe)[!][Feb 2001].iso / Aminet / comm / tcp / samba_2.0.7.lha / INSTALL.AMIGA
Text File  |  2000-12-25  |  17KB  |  398 lines

  1. How to install Samba on your Amiga?
  2. ===================================
  3. Before we discuss the details, first a word of warning: Samba is a very
  4. complex package and so are the many TCP/IP stacks available for the Amiga. If
  5. at first your attempts to install the product do not seem to work, try again.
  6. If it does not work the second time and you are certain that you have followed
  7. and understood every step outlined in this document, ask someone else for
  8. advice. If possible, do not ask the author of this port for advice since he
  9. does not understand every little detail of Samba, the TCP/IP stack you are
  10. using and in particular how Samba interacts with the rest of your network.
  11.  
  12. I'm not joking. It can go wrong and nobody will be able to tell you why it
  13. went wrong.
  14.  
  15.  
  16. 1. Requirements
  17. ---------------
  18. This port of Samba 2.0.0 requires an AmiTCP V3 compatible TCP/IP stack. Among
  19. these are the original free "AmiTCP 3.0" release, the commercial "AmiTCP 4.x"
  20. product, the "AmiTCP Genesis" stack that ships as part of the "NetConnect2"
  21. product and the "Miami" and "Miami Deluxe" products. What will not work are
  22. the free "AmiTCP 3.x" product or the "INet-225" product. You'll know that
  23. Samba does not support your TCP/IP stack if it complains about being unable to
  24. open "bsdsocket.library V3", etc.
  25.  
  26. This port has no special CPU type requirements. It should work on any Amiga,
  27. provided it is running AmigaOS 2.04 or higher.
  28.  
  29. The next thing this port requires is a lot of memory. If you took a quick look
  30. at the programs this package consists of you will know why: some of these
  31. programs are almost 1 MByte in size. Don't expect this to run on a machine
  32. with less than 4 MBytes of memory installed.
  33.  
  34. Due to how these Samba/Windows networks are usually set up, your computer
  35. should sport an Ethernet card, which is properly set up and not suffering from
  36. defects such as missing terminators, wrong cabling, wrong connections, etc.
  37. You may be able to run Samba via your Amiga's serial port, but honestly, it
  38. would be faster to copy the data you wish to transfer with a floppy disk.
  39.  
  40.  
  41. 2. Preparations
  42. ---------------
  43. The following text makes a few assumptions on the configuration of your
  44. network which may be inappropriate for your system. However, they considerably
  45. simplify the instructions. As said before, this is a complex task and we can
  46. but only touch the subject. If you need more information, it is recommended
  47. that you look at the documentation that came with the package (see the "docs"
  48. drawer) or the original Samba distribution package, as available from
  49. www.samba.org (and its mirror sites).
  50.  
  51. You must have chosen a proper IP address for your Amiga and all the other
  52. machines in the network you want to exchange data with. Do not underestimate
  53. this. The weirdest and most difficult to trace errors can result from an
  54. improper choice of IP addresses. For example, while 1.2.3.4 and 1.2.3.5 may
  55. have worked fine for you so far, they won't continue to work with Samba. If
  56. you ended up with such a choice of IP addresses or want to start from scratch
  57. with a proper setup, I would recommend that you start with addresses in the
  58. range from 192.168.0.1 to 192.168.0.126 which make good sense with a local
  59. network. Note that every machine on the network must have a unique address. If
  60. you are using a different address for a good reason and are confident that it
  61. is a valid class A, B or C address, then you're on your own. You should know
  62. what you are doing. If you haven't got any idea what the term "class A
  63. address" means in the first place, you should either refer to a good book on
  64. this subject or stick with the 192.168.0.x addresses suggested before.
  65.  
  66. Now power up one of the machines on the network you want to exchange data
  67. with. If that's a computer running one or another incarnation of Microsoft
  68. Windows you may have to make sure that the machine is properly connected to
  69. the network and has the necessary TCP/IP, SMB and file sharing software
  70. installed. Exactly how this is accomplished is beyond the scope of this
  71. document. Really a lot can go wrong here. To keep things simple, the following
  72. document will assume that you have already configured such a system and that
  73. it's up and running properly.
  74.  
  75. The next thing to do is to perform a simple test to find out whether all the
  76. components of the network are working properly. This tests both the cabling,
  77. the choice of IP addresses and whether the TCP/IP stack is working. For this
  78. test to work out you must know at least one other IP address in your network
  79. that corresponds to a TCP/IP stack. Yes, we are going to "ping" that address.
  80. It's as simple as that. On the Amiga, start your TCP/IP stack and enter "ping
  81. <address>", then press return; you must replace the <address> with the IP
  82. address of the other machine on the network whose address you know. Note to
  83. users of the Miami TCP/IP stack: use "MiamiPing" in place of "ping". The
  84. "ping" command will send some data to the other machine and wait for it to
  85. come back. After a few seconds you'll see a statistic which shows how much of
  86. the data sent came back and how much got lost on the way. If that number shown
  87. is "100%" then the connection is working properly. If the number is "0%" then
  88. you have a problem. If the number is somewhere in between 0% and 100% then
  89. your networking connections are somewhat flaky. They may still work, but it's
  90. not really a good sign to have dropouts like these. If it doesn't work, you're
  91. on your own again.
  92.  
  93. Now we are going to install the package and add to your "S:User-Startup" file.
  94. Let's say we are going to install the package on your "Work:" partition.
  95. Create a drawer on that partition by the name of "Samba", such as by entering
  96. the following:
  97.  
  98.    MakeDir Work:Samba
  99.  
  100. Next, copy the contents of this package to it. Assuming that the package is
  101. stored in the "RAM:amiga_samba_2.0.0" drawer, you would enter the following:
  102.  
  103.    Copy RAM:amiga_samba_2.0.0/install Work:Samba all clone
  104.  
  105. Now we need to add a few lines to your "S:User-Startup" file. Open that file
  106. with a text editor, such as Ed, and add the following lines to the end of the
  107. file:
  108.  
  109.    Assign Samba: Work:Samba
  110.    Path Samba:bin add
  111.  
  112. Almost finished. Now we need to make a few final changes to the Samba
  113. configuration file. The configuration file in question is found in the drawer
  114. "Work:Samba/lib", as created above. Again, start a text editor and open the
  115. file "Work:Samba/lib/smb.conf". Of particular interest are the lines which set
  116. the "workgroup" and "domain master" options. The work group option must be set
  117. to the name of the work group you want your Amiga to be in on the network. For
  118. the sake of simplicity, set this name to the same as on your Windows machine.
  119. The "domain master" option can cause trouble if your network already has a
  120. domain controller set. This is commonly the case with company networks, in
  121. which case you should set this option to "no", or you will cause trouble for
  122. your colleagues. If you set up a network at home for your own use and are
  123. pretty confident that you don't have a domain controller in it yet, leave this
  124. option set to "yes". In any case, save the "smb.conf" file back now and reboot
  125. your machine.
  126.  
  127. NOTE: The sample "smb.conf" file included in this package was created for
  128.       simple, local network access and therefore is not at all secure.
  129.       It will allow any user on the network to log into your machine and
  130.       read, write, delete, modify files. If this is just what you wanted,
  131.       you'll be fine. If this is not all what you had in mind, you may
  132.       want to read up on the subject of "smb.conf" in the accompanying
  133.       documentation.
  134.  
  135.  
  136. 3. Configuring AmiTCP 4.x
  137. -------------------------
  138. A few new lines need to be added to three files of the AmiTCP package. You
  139. should use a text editor to make the changes. The following files will need to
  140. be updated:
  141.  
  142.    AmiTCP:db/services
  143.  
  144.       The following lines need to be added:
  145.  
  146.          netbios-ns 137/udp
  147.          netbios-dgm 138/udp
  148.          netbios-ssn 139/tcp
  149.          swat 901/tcp
  150.  
  151.    AmiTCP:db/inetd.conf
  152.  
  153.       The following lines need to be added:
  154.  
  155.          netbios-ssn stream tcp nowait root Samba:bin/smbd smbd
  156.          netbios-ns dgram udp wait root Samba:bin/nmbd nmbd
  157.          swat stream tcp nowait root Samba:bin/swat swat -a
  158.  
  159.    AmiTCP:db/passwd
  160.  
  161.       The following line needs to be added (NOTE: the
  162.       <ID> in the follow line must be replaced by a
  163.       number that does not appear in the "passwd"
  164.       file yet):
  165.  
  166.          pcguest||<ID>|100|PC Guest|SYS:|NewShell
  167.  
  168. And that's all there is to be done.
  169.  
  170.  
  171. 4. Configuring Miami and Miami Deluxe
  172. -------------------------------------
  173. We need to add a few entries to the Miami database, so click on the button
  174. labeled "Database" to make the "database" section visible. Next, click on the
  175. button that appears at the top of the window until it reads "services". Click
  176. on the "Add" button and enter the following:
  177.  
  178.        Name: netbios-ns
  179.          ID: 137
  180.    Protocol: udp
  181.  
  182. Repeat this procedure for the following entries:
  183.  
  184.        Name: netbios-dgm
  185.          ID: 138
  186.    Protocol: udp
  187.  
  188.        Name: netbios-ssn
  189.          ID: 139
  190.    Protocol: tcp
  191.  
  192.        Name: swat
  193.          ID: 901
  194.    Protocol: tcp
  195.  
  196. Click on the button that read "services" until it reads "InetD", then click on
  197. the "Add" button and enter the following:
  198.  
  199.     Service: netbios-ssn
  200.      Socket: stream
  201.    Protocol: tcp
  202.        Wait: nowait
  203.        User: root
  204.      Server: Samba:bin/smbd
  205.        Name: smbd
  206.        Args: -- Leave this empty --
  207.  
  208. (The description "-- Leave this empty --" really means that you should enter
  209.  nothing in this place rather than entering "-- Leave this empty --".)
  210.  
  211. Repeat this procedure for the following entries:
  212.  
  213.     Service: netbios-ns
  214.      Socket: dgram
  215.    Protocol: udp
  216.        Wait: wait
  217.        User: root
  218.      Server: Samba:bin/nmbd
  219.        Name: nmbd
  220.        Args: -- Leave this empty --
  221.  
  222.     Service: swat
  223.      Socket: stream
  224.    Protocol: tcp
  225.        Wait: nowait
  226.        User: root
  227.      Server: Samba:bin/swat
  228.        Name: swat
  229.        Args: -a
  230.  
  231. Click on the button that read "InetD" until it reads "users", then click on
  232. the "Add" button and enter the following:
  233.  
  234.    User name: pcguest
  235.      User id: <ID>
  236.     Group id: 100
  237.    Real name: PC Guest
  238.     Home dir: SYS:
  239.        Shell: NewShell
  240.  
  241. In this database, enter a number instead of <ID> that is not found among the
  242. other entries currently visible.
  243.  
  244. And that's all there is to be done. You should save your configuration now.
  245.  
  246.  
  247. 5. Configuring AmiTCP Genesis
  248. -----------------------------
  249. In theory, you could use the same steps to configure "AmiTCP Genesis" as with
  250. "AmiTCP 4.x". But since "AmiTCP Genesis" has a graphical user interface for
  251. the configuration section, we'll use that instead.
  252.  
  253. Begin by starting the "GenesisPrefs" program. When it has started, click on
  254. the "Database" label in the list on the left hand side of the window. Next,
  255. click on the button at the top of the window which appears near its the right
  256. hand side until it reads "Services". Now click on the "Add" button and enter
  257. the following data:
  258.  
  259.        Name: netbios-ns
  260.        Port: 137
  261.    Protocol: udp (i.e. in the list with the names "ip", "icmp", etc.
  262.              in it, click on the entry by the name of "udp").
  263.  
  264. Repeat this procedure for the following entries:
  265.  
  266.        Name: netbios-dgm
  267.        Port: 138
  268.    Protocol: udp (i.e. in the list with the names "ip", "icmp", etc.
  269.              in it, click on the entry by the name of "udp").
  270.  
  271.        Name: netbios-ssn
  272.        Port: 139
  273.    Protocol: tcp (i.e. in the list with the names "ip", "icmp", etc.
  274.              in it, click on the entry by the name of "tcp").
  275.  
  276.        Name: swat
  277.        Port: 901
  278.    Protocol: tcp (i.e. in the list with the names "ip", "icmp", etc.
  279.              in it, click on the entry by the name of "tcp").
  280.  
  281. Click on the button that read "Services" until it reads "Inetd", then click on
  282. the "Add" button and enter the following:
  283.  
  284.     Service: netbios-ssn
  285.     Enabled: Yes (i.e. there must be a checkmark in this field)
  286.        User: root
  287.      Server: Samba:bin/smbd
  288.    CLI name: smbd
  289.        Args: -- Leave this empty --
  290.    Protocol: tcp (i.e. in the list with the names "ip", "icmp", etc.
  291.              in it, click on the entry by the name of "tcp").
  292.      Socket: stream (i.e. below the list with the names "ip", "icmp",
  293.              etc. in it, there is a button which you should press
  294.              until it reads "stream").
  295.        Wait: nowait (i.e. right above the "Cancel" gadget there is a
  296.              button which you should press until it reads "nowait").
  297.  
  298. (The description "-- Leave this empty --" really means that you should enter
  299.  nothing in this place rather than entering "-- Leave this empty --".)
  300.  
  301. Repeat this procedure for the following entries:
  302.  
  303.     Service: netbios-ns
  304.     Enabled: Yes (i.e. there must be a checkmark in this field)
  305.        User: root
  306.      Server: Samba:bin/nmbd
  307.    CLI name: nmbd
  308.        Args: -- Leave this empty --
  309.    Protocol: udp (i.e. in the list with the names "ip", "icmp", etc.
  310.              in it, click on the entry by the name of "udp").
  311.      Socket: dgram (i.e. below the list with the names "ip", "icmp",
  312.              etc. in it, there is a button which you should press
  313.              until it reads "dgram").
  314.        Wait: wait (i.e. right above the "Cancel" gadget there is a
  315.              button which you should press until it reads "wait").
  316.  
  317.     Service: swat
  318.     Enabled: Yes (i.e. there must be a checkmark in this field)
  319.        User: root
  320.      Server: Samba:bin/swat
  321.    CLI name: swat
  322.        Args: -a
  323.    Protocol: tcp (i.e. in the list with the names "ip", "icmp", etc.
  324.              in it, click on the entry by the name of "tcp").
  325.      Socket: stream (i.e. below the list with the names "ip", "icmp",
  326.              etc. in it, there is a button which you should press
  327.              until it reads "stream").
  328.        Wait: nowait (i.e. right above the "Cancel" gadget there is a
  329.              button which you should press until it reads "nowait").
  330.  
  331. Click on the "User" label in the list on the left hand side of the window.
  332. Next, click on the button "New", then enter the following:
  333.  
  334.       User name: pcguest
  335.       Real Name: PC Guest
  336.        Home Dir: SYS:
  337.           Shell: NewShell
  338.    Disable User: No (i.e. there must not be a checkmark in this field)
  339.         User ID: <ID>
  340.        Group ID: 100
  341.  
  342. In this database, enter a number instead of <ID> that is not found among the
  343. other entries currently visible in the user list. When you have entered this
  344. data, click on the "Ok" button.
  345.  
  346. That's all there is to be done. Don't forget to save these settings.
  347.  
  348.  
  349. 6. What else is in the package?
  350. -------------------------------
  351. This archive file should also include the source code to the Amiga specific
  352. portions of the Samba port (in the "source" directory). To learn more about
  353. rebuilding Samba from scratch on your machine, please look at the file located
  354. at "source/README".
  355.  
  356. What is probably more important for you are the many files found in the
  357. "docs" and "examples" directories. The "examples" directory holds sample
  358. configurations for Samba, some of which are applicable to the Amiga port (not
  359. all of them are, though). Of particular interest is the "docs" directory which
  360. contains a whole load of useful and cryptic information. You might want to
  361. read the file "docs/textdocs/DIAGNOSIS.txt" to learn more about diagnosing
  362. Samba configuration and network errors.
  363.  
  364.  
  365. 7. What is not in the package?
  366. ------------------------------
  367. There is no support for printing in this Samba port. It might appear to work,
  368. but trust me that it does not do this reliably. This functionality has been
  369. omitted since I couldn't come up with a halfway plausible way to emulate and
  370. configure this feature. Amiga Samba users already have to wrestle with a lot
  371. of configuration options and it's all too easy to get things wrong. It doesn't
  372. get better if there is another poorly configurable option nobody can really
  373. handle. Therefore, stay away from the printing option!
  374.  
  375. The options you can see and operate in the "swat" utility do not all work as
  376. you might expect. In particular the options to start, stop and restart the
  377. nmbd and smbd daemons are not operational at all. Again, they may appear to do
  378. something useful, but they don't.
  379.  
  380.  
  381. 8. Conclusion
  382. -------------
  383. I hope that this brief description is helpful, but as said before, it cannot
  384. possibly cover all the details of getting Samba up and running on your Amiga.
  385. Feel free to comment on the text and to make additions. Here is how to reach
  386. me:
  387.  
  388.    Postal address: Olaf Barthel
  389.                    Brabeckstr. 35
  390.                    30559 Hannover
  391.  
  392.                    Federal Republic of Germany
  393.  
  394.    e-mail address: olsen@sourcery.han.de
  395.  
  396. Again, don't rely upon my help to get Samba up and running on your machine. I
  397. may be just as helpless as you are.
  398.